//import java.util.Scanner;
//
//public class Main1 {
//    private static boolean isLeapYear(int year) {
//        return year % 400 == 0 || (year % 4 == 0 && year % 100 != 0);
//    }
//    private static int count(int year, int month, int day,int year1, int month1, int day1){
//        int[][] leap= {{0, 62, 29, 31, 60, 31, 60, 31, 62, 60, 62, 30, 62},
//                {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}};
//        int[][] normal= {{0, 62, 28, 31, 60, 31, 60, 31, 62, 60, 62, 30, 62},
//                {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}};
//        int ret=0;
//       if (year==year1){
//           if (!isLeapYear(year)){
//               leap[0][2]=28;leap[1][2]=28;
//           }
//           if (month==month1){
//               ret=(day1-day+1)*
//           }
//       }
//    }
//    public static void main(String[] args) {
//        Scanner sc=new Scanner(System.in);
//        while (sc.hasNext()){
//            int year = sc.nextInt();
//            int month = sc.nextInt();
//            int day = sc.nextInt();
//            int year1 = sc.nextInt();
//            int month1 = sc.nextInt();
//            int day1 = sc.nextInt();
//
//            System.out.println(count(year,month,day,year1,month1,day1));
//        }
//    }
//}
